* {
  margin: 0;
  padding: 0;
}

#container {
  width: 1000px;
  height: 600px;
  border: 2px solid #777;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  background-image: url("./img/bg.webp");
  background-size: cover;
}

.snake-head {
  background-size: cover;
  border-radius: 50%;
  background-image: url("./img/snakeHead.webp");
}

#container .snake-head,
.snake-body {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid #eee;
  border-radius: 50%;
}

.snake-body {
  background-color: rgb(25, 92, 28);
  left: -20px;
  background-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0, rgb(120, 180, 123)),
    color-stop(1, rgb(25, 92, 28))
  );
}

.food {
  width: 20px;
  height: 20px;
  border: 1px solid #eee;
  border-radius: 50%;
  position: absolute;
  /* background-image: url("./img/food.webp"); */
  background-size: cover;
  border-radius: 50%;
}

.info {
  width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 30px;
  position: relative;
}
button {
  padding: 10px;
  margin-left: 10px;
}
.speed {
  /* float: right; */
}
.handle {
  float: right;
}
.score {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
